package com.zjweu.hkg.Servies;
import com.zjweu.hkg.DTO.NodeRequest;
import com.zjweu.hkg.POJO.HydroNodeRelation;
import com.zjweu.hkg.POJO.River;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestParam;

import java.io.IOException;
import java.util.List;

@Service
public interface HydroNodeService {
     int addNodeByName(String name);
     int addNodesAndRelation(NodeRequest nodeRequest);

     void clearAllNodes();

     HydroNodeRelation[] getAll();


     void createRelationFromRiver() throws IOException;

     List<River> getAllRiverFromMysql();
     int addNodesAndRelationByList(List<NodeRequest> nodeRequestList);

     int applyChangesToMysqlAndNeo4j(@RequestParam("tableData") List<River> riverList) throws IOException;
}
